﻿using System;
using System.Configuration;
using System.Collections.Generic;
using System.Text;

namespace Query2Object
{
    /// <summary>
    /// Handle the Config Section
    /// 用于获取Section的内部节点的类
    /// </summary>
    public class DataBaseSection:ConfigurationSection
    {
         private static ConfigurationPropertyCollection s_properties;
        private static ConfigurationProperty s_propItems;

        static DataBaseSection()
        {
            s_properties = new ConfigurationPropertyCollection();
            s_propItems = new ConfigurationProperty("items", typeof(Connectionlist),
                                                    null, ConfigurationPropertyOptions.IsRequired);
            s_properties.Add(s_propItems);
        }
        public Connectionlist Items
        {
            get { return (Connectionlist)base[s_propItems]; }
        }


        protected override ConfigurationPropertyCollection Properties
        {
            get { return s_properties; }
        }
    }
}
